/**
 * Action 生命周期
 * 
 * 
 * 
 */


export default {
  name: 'action',
  _state: {
    // 按钮可用状态
    enable: true,
    // 数据查询中状态
    fetching: false,
    // 数据提交中状态
    posting: false,
    // 可提交
    enableSubmit: true,
    // 模态窗口打开状态
    modal: false,
    // 触发参数（一般为数据行）
    payload: {}
  },
  _actions: {
    actionTrigger() {},
    actionSubmit() {},
    open() {},
    close() {},

    //控制owner相关方法
    ownerCommit() {},
    ownerDispatch() {},
    ownerGetter() {},
    ownerState() {},

  },
  _getters: {
    actionParam(state) {
      return state.actionModel.param || {}
    }
  }
}
